<div class="farm-overhaul-container">

  <section class="farm-overhaul-main flex flex-column flex-full">
    <header class="overhaul-main-header flex">
      <!-- <div>

      </div> -->
      <div class="farms flex-full">
        <span class="farm-name"><i></i>  </span>
        <span (click)=onClickHeader(0) [ngClass]="{active:active==0}">非计划停机</span>
        <span (click)=onClickHeader(1) [ngClass]="{active:active==1}">计划停机</span>
        <!-- <span *ngFor="let item of farms let i =index " [ngClass]="{active:item.farmId == currentFarmId}" (click)="onFarmClick(item)">
              {{item.farmName}}
          </span> -->

      </div>
      <div class="time-choose flex-full flex">
        <b class="trend-main-header">
              <span (click)=onComplete(0) [ngClass]="{on:completeIndex==0}">未完成情况</span>
              <span (click)=onComplete(1) [ngClass]="{on:completeIndex==1}">当天完成情况</span>
        </b> 时间：
        <p-calendar [locale]="en" [(ngModel)]="startDate"></p-calendar>
        <button class="button" (click)="onSearch()">查询</button>
        <button class="button" (click)="onEdit()">编辑</button>
      </div>



    </header>
    <section class="overhaul-main-content  flex-full">
      <app-overhaul-table [ngClass]="{'overhaul-table':true,on:active==0}" #overhaultable (emitSelectHistory)="onSelectHistory($event)"
        [turboperHistorys]="turboperHistorys"></app-overhaul-table>
      <app-overhaul-table [ngClass]="{'overhaul-table':true,on:active==1}" #overhaultable (emitSelectHistory)="onSelectHistory($event)"
        [turboperHistorys]="turboperHistorys2"></app-overhaul-table>

    </section>
  </section>
</div>
<app-overhaul-edit *ngIf="isEdit" (colseEdit)="onColseEdit($event)" class="farm-overhaul-edit" [currentHistory]="currentHistory"></app-overhaul-edit>
<p-dialog header="提示信息" [(visible)]="display" modal="modal" width="250" [responsive]="true">
  <p>{{mes}}!</p>
  <p-footer>
    <button type="button" pButton icon="fa fa-check" (click)="display=false" label="确定"></button>
  </p-footer>
</p-dialog>

